﻿
@model VenueSearchResultViewModel

@{ var routeValues = new { area = "VenueArea", id = Model.Venue.Pk };}

@if (Model.IsVisible)
{
    <div class="searchitem">
        <div>
            <a class="search1" href="@Url.Action("Index", "Details", routeValues)">@Model.Venue.VenueName</a>

            @if (!Model.Venue.IsApproved)
            {
                <span class="k-icon k-i-note" title="Awaiting approval."></span>
            }
        </div>

        @if (!string.IsNullOrEmpty(Model.Venue.Address))
        {
            <div class="search2">@Model.Venue.Address</div>
        }

        @if (Model.Venue.CountryGuid != null)
        {
            <div class="search2">@Model.Venue.Country.CountryName</div>
        }

        @if (Model.Venue.Capacity != null)
        {
            <div class="search2">Capacity: @string.Format("{0:N0}", Model.Venue.Capacity)</div>
        }

        <div>
            @if (Model.IsDeleteVisible) { @Html.Partial("Links/_DeleteLink", routeValues); }

            @if (Model.IsConfirmApprovalVisible) { @Html.Partial("Links/_ConfirmApprovalLink", routeValues); }
        </div>
    </div>
}

